package com.cw.jeeyt.service.intf.system;

import com.cw.jeeyt.service.bo.system.SystemHolidayBo;
import com.cw.lang.mybatis.dto.PageInfo;

/**
 * 节假日信息业务接口
 *
 * @author chenw
 * @version 1.0.0
 */
public interface SystemHolidayService {
    /**
     * 根据主键查询节假日信息
     *
     * @param id 主键
     * @return
     */
    SystemHolidayBo getSystemHolidayById(String id) throws Exception;

    /**
     * 删除节假日信息
     *
     * @param systemHolidayBo
     */
    void deleteSystemHoliday(SystemHolidayBo systemHolidayBo) throws Exception;

    /**
     * 更新节假日信息
     *
     * @param systemHolidayBo
     */
    void updateSystemHoliday(SystemHolidayBo systemHolidayBo) throws Exception;

    /**
     * 新增节假日信息
     *
     * @param systemHolidayBo
     * @return
     */
    void insertSystemHoliday(SystemHolidayBo systemHolidayBo) throws Exception;

    /**
     * 分页查询节假日信息
     *
     * @param systemHolidayBo
     * @param startNum
     * @param pageSize
     * @return
     * @throws Exception
     */
    PageInfo<SystemHolidayBo> queryByPage(SystemHolidayBo systemHolidayBo, Integer startNum, Integer pageSize)
    throws Exception;
}
